import request from '@/utils/request'

// 获取活动类型列表
export function getActivityType(query) {
  return request({
    url: '/system/activity/front',
    method: 'get',
    params: query
  })
}



// 获取活动类型列表
export function getActivityList(query) {
  return request({
    url: '/system/activity/list',
    method: 'get',
    params: query
  })
}

export function getActivityAll() {
  return request({
    url: '/system/activity/front',
    method: 'get'
  })
}

export function getActivityDetail(Id) {
  return request({
    url: '/system/activity/' + Id,
    method: 'get',
  })
}


export function addActivity(data) {
  return request({
    url: '/system/activity/add',
    method: 'post',
    data: data
  })
}

// 修改活动
export function updateActivity(data) {
  return request({
    url: '/system/activity/update',
    method: 'post',
    data: data
  })
}

export function delActivity(Id) {
  return request({
    url: '/system/activity/delete/' + Id,
    method: 'delete'
  })
}

